package Harmonisation;

public class EnsembleNote {
	private Note basse;
	private Note tenor;
	private Note alto;
	private Note soprano;

	public EnsembleNote(Note basse, Note tenor, Note alto, Note soprano) {
		this.basse = basse;
		this.alto = alto;
		this.tenor = tenor;
		this.soprano = soprano;
	}

	public String toString() {
		String s = "";
		s += basse;
		s += tenor;
		s += alto;
		s += soprano;
		return s;
	}

	public String getAccord() {
		if (this.basse.getNom().equals("do"))
			return "i";
		else if (this.basse.getNom().equals("re"))
			return "ii";
		else if (this.basse.getNom().equals("mi"))
			return "iii";
		else if (this.basse.getNom().equals("fa"))
			return "iv";
		else if (this.basse.getNom().equals("sol"))
			return "v";
		else if (this.basse.getNom().equals("la"))
			return "vi";
		else
			return "vii";
	}

	public Note getBasse() {
		return basse;
	}

	public void setBasse(Note basse) {
		this.basse = basse;
	}

	public Note getTenor() {
		return tenor;
	}

	public void setTenor(Note tenor) {
		this.tenor = tenor;
	}

	public Note getAlto() {
		return alto;
	}

	public void setAlto(Note alto) {
		this.alto = alto;
	}

	public Note getSoprano() {
		return soprano;
	}

	public void setSoprano(Note soprano) {
		this.soprano = soprano;
	}

}
